#include<stdio.h>
#include<math.h>
int main()
{
    float w,h;
    scanf("%f %f",&w,&h);
    float ret = w/pow(h,2);
    printf("%.1f\n",ret);
    if(ret>25)
    {
        printf("PANG");
    }
    else
    {
        printf("Hai Xing");
    }
    return 0;
}